<div class="title">
  <h1>Listing palaces</h1>
</div>

<div class="content">
  <table>
    <tr>
      <th class="heading">Name</th>
      <th class="heading">Position</th>
      <th class="heading">Baum des Lebens</th>
      <th class="heading">Kriegsbrunnen</th>
      <th class="heading">Palasthof</th>
      <th class="heading">Geheime Grotte</th>
      <th class="heading">Kräuterschule</th>
      <th class="heading">Kristallhöhle</th>
      <th class="heading">Steinwurzel</th>
      <th class="heading">Harzader</th>
      <th class="heading">Xhodotorischer Kokon</th>
      <th class="heading">Heldenstatue</th>
      <th class="heading">Zuchtstation</th>
      <th class="heading">Steinmantel</th>
      <th class="heading">Kristallturm</th>
      <th class="heading">Irres auge</th>
      <th class="heading">Kristallines Katapult</th>
    </tr>

    <% for palace in @palaces %>
      <tr class="line">
        <td class="def"><%= link_to palace.name, player_palace_path(@player, palace) %></td>
        <td class="def" id="center"><%=h palace.position1 %>:<%=h palace.position2 %>:<%=h palace.position3 %></td>
        <td class="def" id="right"><%=h palace.baum_des_lebens %></td>
        <td class="def" id="right"><%=h palace.kriegsbrunnen %></td>
        <td class="def" id="right"><%=h palace.palasthof %></td>
        <td class="def" id="right"><%=h palace.geheime_grotte %></td>
        <td class="def" id="right"><%=h palace.kraeuterschule %></td>
        <td class="def" id="right"><%=h palace.kristallhoehle %></td>
        <td class="def" id="right"><%=h palace.steinwurzel %></td>
        <td class="def" id="right"><%=h palace.harzader %></td>
        <td class="def" id="right"><%=h palace.xhodotorischer_kokon %></td>
        <td class="def" id="right"><%=h palace.heldenstatue %></td>
        <td class="def" id="right"><%=h palace.zuchtstation %></td>
        <td class="def" id="right"><%=h palace.steinmantel %></td>
        <td class="def" id="right"><%=h palace.kristallturm %></td>
        <td class="def" id="right"><%=h palace.irres_auge %></td>
        <td class="def" id="right"><%=h palace.kristallines_katapult %></td>
        <td class="button"><%= link_to 'Edit', edit_player_palace_path(@player, palace) %></td>
        <td class="button"><%= link_to 'Destroy', player_palace_path(@player, palace), :confirm => 'Are you sure?', :method => :delete %></td>
      </tr>
    <% end %>
  </table>
</div>

<% content_for :navigation do %>
  <li>
    <%= link_to 'New palace', new_player_palace_path(@player) %>
  </li>
<% end %>